package com.hulk.ratel;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;


/**
 * @Author: hulk
 * @E-mail: 29572320@qq.com
 * @Date: Create in 2018/3/15 下午3:31
 * @Version: 1.0.0
 * @Modify by:
 * Class description
 */
public class SpringBootStartApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        // 注意这里要指向原先用main方法执行的Application启动类
        return builder.sources(ApplicationBootstrap.class);
    }
}